home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (3rd Edition)
/
The Business Master (3rd Edition).iso
/
files
/
utilstem
/
anarkey
/
anarkmd.doc
< prev
next >
Wrap
Text File
|
1989-10-01
|
13KB
|
362 lines
ANARKMD
The Anarkey Command-Line Utility
User Manual
Version 3.00
Steven Calwas
Moderne Software
P.O. Box 3638
Santa Clara, CA 95055-3638
_______
____|__ | (tm)
--| | |-------------------
| ____|__ | Association of
| | |_| Shareware
|__| o | Professionals
-----| | |---------------------
|___|___| MEMBER
Copyright (C) 1989
Steven Calwas
All rights reserved
Introduction
------------
ANARKMD (pronounced "anar-command") is a support program for the ANARKEY
software package. It allows the execution of certain ANARKEY functions to
be instigated from the command line as opposed to the keyboard. An ANARKEY
function executed via ANARKMD operates exactly as if you had pressed the
associated function invocation keystroke yourself. In addition, ANARKMD
offers some function enhancements not available when the function is
executed from the keyboard. For example, a filename and location may be
specified when writing the history buffer contents to a disk file. With
ANARKMD, ANARKEY functions can be invoked from within a batch file, a
multiple command input line or an AKA.
ANARKMD can also be used to execute an AKA or multiple-command input line
from within a batch file. Normally, ANARKEY is not active during batch file
processing, but, with ANARKMD, many of the powerful features of ANARKEY will
now be available.
Running ANARKMD
---------------
ANARKMD can be executed from the DOS command prompt, within a batch file,
from an AKA or anywhere else a normal program can be run.
The only restriction to ANARKMD execution is that it may NOT be run from
within a multiple command line unless it is the very last command in the
line. If ANARKMD is run in a multiple command line and other commands
follow it on the line, all the following commands will be ignored; they will
not be executed.
ANARKMD command-line syntax is:
ANARKMD [-option | input_line]
ANARKMD is really two programs combined into one; it can be used to
either:
(1) execute an ANARKEY function or
(2) execute an entire input line which may contain multiple commands
and AKAs.
Depending on which operation you wish to perform, either a function
description ("-option") or the line to execute ("input_line") must be
provided to ANARKMD on its command line. This manual will first discuss how
to invoke an ANARKEY function and then move on the executing entire lines.
Invoking ANARKEY Functions
--------------------------
To execute an ANARKEY function from the command-line, ANARKMD must be
told:
(1) to execute an ANARKEY function and
(2) which function to execute
Both of these pieces of information are provided to ANARKMD via
command-line options. Options always begin with a dash (-) character and
may be in upper or lower case. Options may be specified in any order.
The supported options are:
-Fx -- ANARKEY function to execute
The -F option is used to tell ANARKMD which ANARKEY function to execute.
Only one -F option per ANARKMD invocation is allowed. If multiple -F
options are specified, only the last one will be recognized.
The -F option is immediately followed by a full description of the
function to be executed. No spaces may separate the -F option from the
function description.
ANARKMD looks at only the first two characters of the description to
determine its identity, thus, you may abbreviate the function description
by only specifying its first two characters. The function description
may be in upper or lower case.
The supported functions are:
o BOttom_display_history_buffer
The contents of the history buffer are display onscreen starting
from the last line in the buffer and advancing to the first. This
function executes the ANARKEY Display-History-Buffer-From-Bottom
function assigned to the <Ctrl-F4> key.
Examples:
>ANARKMD -FBottom_display_history_buffer
>ANARKMD -FBO
o CLear_history_buffer
All lines stored in the history buffer will be removed.
This function is identical to executing the ANARKEY Clear-History-
Buffer function assigned to the <Ctrl-X> key by default.
Examples:
>ANARKMD -Fclear_history_buffer
>ANARKMD -fCL
o DIsplay_history_buffer
The contents of the history buffer will be displayed onscreen. This
function invokes the ANARKEY Display-History-Buffer-Contents
operation mapped to the <F4> key.
Examples:
>ANARKMD -FDisplay_History_Buffer
>ANARKMD -FDI
o LIst_switchar_programs
The contents of the UNIX switchar buffer will be displayed onscreen.
This operation executes the ANARKEY Display-Switchar-Programs
function mapped to <Shift-F4>.
Examples:
>ANARKMD -FList_Switchar_Programs
>ANARKMD -FLI
o REstore_anarkey
Will restore ANARKEY input processing of DOS command lines. Input
processing can be disabled by the SUspend_anarkey_input_processing
function. Refer to the SUspend_anarkey_input_processing option's
description for further details.
There is no comparable function available in ANARKEY. Once
suspended, ANARKEY can only be restored by running ANARKMD with this
option.
Examples:
>ANARKMD -FRestore_anarkey
>ANARKMD -FRE
o SHow_AKAs
The list of defined AKAs will be displayed onscreen, just as if you
had invoked the ANARKEY View-AKAs function by pressing the <Alt-F4>
key.
Examples:
>ANARKMD -Fshow_AKAs
>ANARKMD -Fsh
o SUspend_anarkey
Will suspend ANARKEY handling of input commands. All ANARKEY
features will be disabled indefinitely. ANARKEY can be enabled
again by running ANARKMD with the REstore_anarkey option.
There is no comparable function available in ANARKEY itself.
Examples:
>ANARKMD -FSuspend_Anarkey
>ANARKMD -FSU
o TOggle_input_mode
The TOggleInputMode function will cause ANARKMD to execute the
ANARKEY Toggle-Insert/Overwrite-Mode function whose default key
assignment is the <Ins> key.
Examples:
>ANARKMD -Ftoggle_input_mode
>ANARKMD -Fto
o UNdefine_all_AKAs
All AKAs will be undefined. This is the same as pressing the
<Alt-X> key to invoke the ANARKEY Undefine-All-AKAs function.
Examples:
>ANARKMD -FUndefine_all_AKAs
>ANARKMD -Fun
o WRite_history_buffer:file_specification
The contents of the history buffer are written to the
file_specification disk file. "file_specification" is any valid DOS
filename, including an optional drive and/or path name. There is
no default value for file_specification; it must always be
explicitly specified. The file_specification is separated from the
function description by a colon (:). No spaces may exist on either
side of the colon.
This function executes the ANARKEY Write-History-Buffer-to-Disk
function normally assigned to <Ctrl-W>.
Support for the file_specification provides a new capability not
found in the associated ANARKEY function. ANARKEY will only write
the disk file to ANARKEY.LOG in the root directory of the current
drive.
This capability can be very useful if you have a standard batch file
you run whenever you powerdown your machine. You could add a line
to the batch file which saves the current history buffer and then
run LOAD from the AUTOEXEC file to restore the buffer the next time
you powerup.
Examples:
>ANARKMD -Fwr:e:\usr\dave\log\buffer.log
>ANARKMD -Fwr:\log\savehist.buf
>:whb anarkmd -fwr:c:\anarkey.log
anarkmd -fwr:%1 <--- As in a batch file
-Pn -- ANARKEY Process Number
The -Pn option is used to inform ANARKMD of ANARKEY's installation
process number. This option is identical to the -P option available on
the ANARKEY installation line. Please refer to the "ANARKEY User Manual"
for details about when to use this option.
The -P option will only be required in extremely rare instances. If you
installed ANARKEY without it, you will not need to use it for ANARKMD
either.
Examples:
>ANARKMD -FToggle_Input_Mode -P14
>ANARKMD -p3 -Fun
Executing an Entire Input Line
------------------------------
As mentioned, ANARKMD can also be used to execute an entire input line.
This capability is most useful when used in batch files as it allows you to
execute multiple-command lines and AKAs within them.
To have ANARKMD execute an input line, simple specify the line on the
ANARKMD command line. Any valid DOS input line may be entered. If ANARKEY
is installed, any valid ANARKEY input line is also allowable. This means
the line can contain multiple commands and AKAs and be up to 255 characters
long. The line will be executed just as if it had been entered at the DOS
command prompt.
Some sample command lines follow.
ANARKMD dir
ANARKMD aka;edit file.x;aka2
ANARKMD aka2 file1 file2 file3
If the line contains DOS redirection characters >, >> or < or the pipe
operator |, bracket the entire line with double quotes (").
ANARKMD "dir >dir.log"
ANARKMD "aka file1 | more;aka2"
As part of the process of executing a line, ANARKMD creates a temporary
disk file. By default, the file will be written to the current directory of
the current drive. The temporary file can be written somewhere else by
defining an environment variable called "ANARTMP". ANARTMP should be set to
the drive and/or directory to which the temporary file should be written.
The temporary file is always deleted before ANARKMD terminates.
For example, the following environment variable definitions would
instruct ANARKMD to store its temporary file in a specific location:
>SET ANARTMP=g:
>SET ANARTMP=c:\temp\
>SET ANARTMP=a:/etc
Comments and Suggestions
------------------------
I would love to hear your suggestions, comments, and enhancement ideas
concerning ANARKMD and the other programs in the ANARKEY software package.
Please send your suggestions to:
Steven Calwas
Moderne Software
P.O. Box 3638
Santa Clara, CA 95055-3638
_______
____|__ | (tm)
--| | |-------------------
| ____|__ | Association of
| | |_| Shareware
|__| o | Professionals
-----| | |---------------------
|___|___| MEMBER